package com.yangchuang.openpicture.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * JWT 配置属性类
 */
@Data
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    /**
     * 签名密钥
     */
    private String secret;

    /**
     * AccessToken 过期时间
     */
    private Long accessTokenExpiration;

    /**
     * RefreshToken 过期时间
     */
    private Long refreshTokenExpiration;
}
